<{extends file="$tpl_dir/tpl_base.htm"}>
<{block name="main"}>
<div class="main-head">
  <div class="main-head_title">
    <h2><{$title}></h2>
  </div>
</div>
<div class="main-body">
  <div class="mod-box mod-form">
    <form method="post" autocomplete="off" id="main_form">
      <input type="hidden" name="action" value="<{$action}>">
      <input type="hidden" name="id" value="<{$info.id}>">
      <input type="hidden" name="old_phone" value="<{$info.phone}>">
	  <div class="mod-form_row">
        <div class="mod-form_label required">姓名</div>
        <div class="mod-form_input">
          <input type="text" name="name" class="mod-inpt" value="<{$info.name}>">
        </div>
      </div>
	  <div class="mod-form_row">
        <div class="mod-form_label required">部门</div>
        <div class="mod-form_input">
          <input type="text" name="department" class="mod-inpt" value="<{$info.department}>">
        </div>
      </div>
      <div class="mod-form_row">
        <div class="mod-form_label required">手机号码</div>
        <div class="mod-form_input">
          <input type="text" name="phone" class="mod-inpt" value="<{$info.phone}>">
        </div>
      </div>
      <div class="mod-form_row">
        <div class="mod-form_label<{if $action == 'create'}> required<{/if}>">登录密码</div>
        <div class="mod-form_input">
          <input type="text" name="password" class="mod-inpt" placeholder="6-20个字符，区分大小写" maxlength="20">
        </div>
      </div>
	  <div class="mod-form_row">
        <div class="mod-form_label required">身份证号</div>
        <div class="mod-form_input">
          <input type="text" name="idno" class="mod-inpt" value="<{$info.idno}>">
        </div>
      </div>
      <div class="mod-form_row">
        <div class="mod-form_label required">年金级别</div>
        <div class="mod-form_input">
          <select name="level" class="mod-slct">
		  	<{foreach $options.level as $key => $value}>
			<option value="<{$key}>" <{if $info.level == $key}>selected<{/if}>><{$value.label}></option>
			<{/foreach}>
          </select>
        </div>
      </div>
      <div class="mod-form_post"><a class="mod-btn mod-btn_primary" href="javascript:;">提交</a> <a class="mod-btn act-goback" href="javascript:;">返回</a></div>
    </form>
  </div>
</div>
<{/block}>
<{block name="foot" append}>
<script type="text/javascript">
(function(){
	JUtil.submit("#main_form", {
		input:{
			name: {ch: "姓名"},
			department: {ch: "部门"},
			phone: {ch: "手机号码"},
			<{if $action == 'create'}>password: {ch: "登录密码"},<{/if}>
			idno: {ch: "身份证号"},
			level: {ch: "评定级别"}
		}
	});
})();
</script>
<{/block}>